﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Lucas.Wendell.PI.Model.Enum;
using Senac.NetMob.Models;

namespace Lucas.Wendell.PI.Model
{
    [Table("Tb_ImovelEspecificacao")]
    public class ImovelEspecificacao : BaseModel
    {
        public int ImovelId { get; set; }

        [ForeignKey("ImovelId")]
        public virtual Imovel Imovel { get; set; }

        [Required]
        [StringLength(500, ErrorMessage = NetImobiliariaConstants.MESSAGE_ERROR_STRING_LENGTH)]
        public string Avaliacao { get; set; }

        public string Descricao { get; set; }

        public string Observacao { get; set; }

        [Required]
        public TipoEspecificacaoEnum TipoEspecificacao { get; set; }
    }
}
